
#include "SmartLevelStreamingExtensions.h"
#include "EditorLevelLibrary.h"


void USmartLevelStreamingExtensions::SmSetLocked(ULevelStreaming* LevelStreaming, bool bIsLocked)
{
	UEditorLevelLibrary::SelectNothing();
	LevelStreaming->bLocked = bIsLocked;
}

void USmartLevelStreamingExtensions::SmSetVisible(ULevelStreaming* LevelStreaming, bool bIsVisible)
{
	LevelStreaming->SetShouldBeVisible(bIsVisible);
	LevelStreaming->SetShouldBeVisibleInEditor(bIsVisible);
	UWorld* World = LevelStreaming->GetWorld();
	World->FlushLevelStreaming();
}
